package com.atguigu.principle.composite;

public class Client {
    public static void main(String[] args) {
        OrganizationComponent university = new University("长江大学", "世界知名");
        OrganizationComponent college = new College("计算机科学学院", "最好");
        OrganizationComponent college2 = new College("石油学院","第一");
        university.add(college);
        university.add(college2);
        college.add(new Department("计算机科与技术","一般"));
        college.add(new Department("软件工程","好"));
        college.add(new Department("网络工程","失业"));

        college2.add(new Department("石油","好"));
        college2.add(new Department("钻探","累"));

        university.print();



    }
}
